package com.lzhsite.technology.designPattern.bridgems.OAMessgaeBridge;

public class ClientForOAMessageBridge
{
    public static void main(String[] args)
    {
        MessageImplementor messageImplementor = new MessageSMS();
        AbstractMessage message = new CommonMessage(messageImplementor);
        message.sendMessage("请喝杯茶", "小李");
        message = new UrgencyMessage(messageImplementor);
        message.sendMessage("请喝杯茶", "小李");
        message = new SpecialUrgencyMessage(messageImplementor);
        message.sendMessage("请喝杯茶", "小李");

        messageImplementor = new MessageMobile();
        message = new CommonMessage(messageImplementor);
        message.sendMessage("请喝杯茶", "小李");
        message = new UrgencyMessage(messageImplementor);
        message.sendMessage("请喝杯茶", "小李");
        message = new SpecialUrgencyMessage(messageImplementor);
        message.sendMessage("请喝杯茶", "小李");
    }
}
